package com.nulldev.util.web.HttpServer3.extensions.websocket.frame;

public enum FrameType {
	CONTINUE_FRAME(0),
	TEXT_FRAME(1),
	BINARY_FRAME(2),
	RESERVE_NON_CONTROL_FRAME(3),
	RESERVE_NON_CONTROL_FRAME1(4),
	RESERVE_NON_CONTROL_FRAME2(5),
	RESERVE_NON_CONTROL_FRAME3(6),
	RESERVE_NON_CONTROL_FRAME4(7),
	CLOSE_FRAME(8),
	PING_FRAME(9),
	PONG_FRAME(10),
	RESERVE_CONTROL_FRAME(11),
	RESERVE_CONTROL_FRAME1(12),
	RESERVE_CONTROL_FRAME2(13),
	RESERVE_CONTROL_FRAME3(14),
	RESERVE_CONTROL_FRAME4(15),
	CONTROL(16),
	NON_CONTROL(17);

	private final byte data;

	FrameType(final int b) {
		this.data = (byte) b;
	}

	public byte getByte() {
		return data;
	}
}